import React from 'react';
import { MapPage } from 'weaver-mobile-page';
import {observer, inject} from "mobx-react";
import { withRouter } from "react-router-dom";
@inject('viewMeetingStore')
@withRouter
@observer
export default class SignMap extends React.Component {

  render() {
    const { position, address, mapPage} = this.props.viewMeetingStore;
    return (
      <div style={{height: '100%'}}>
        <MapPage
        position={position}
        address={<div dangerouslySetInnerHTML={{ __html: address }}></div>}
        store={mapPage}
      />
      </div>
    );
  }
}